package com.fancy.playlist.service;

import com.fancy.common.dto.PageResult;
import com.fancy.common.dto.UserCollectionResponseDTO;

public interface UserCollectionService {

    /**
     * 获取用户收藏列表
     */
    PageResult<UserCollectionResponseDTO> getUserCollections(Long userId, Integer type, int page, int size);

    /**
     * 获取用户收藏总数
     */
    int getCollectionCount(Long userId);

    /**
     * 添加收藏
     */
    boolean addCollection(Long userId, Long targetId, Integer targetType);

    /**
     * 取消收藏
     */
    boolean removeCollection(Long userId, Long targetId, Integer targetType);

    /**
     * 检查是否已收藏
     */
    boolean isCollected(Long userId, Long targetId, Integer targetType);
}
